package com.coocaa.ops.admin.v1.upload.util;


import com.coocaa.ops.admin.v1.upload.model.UploadConfig;
import org.springframework.util.Assert;

/**
 * @author bijiahao
 * @date : 2019/2/19.
 * @description
 */
public final class UploadConfigValidator {

    private UploadConfigValidator(){

    }


    public static void valid(UploadConfig uploadConfig){
        Assert.notNull(uploadConfig, "zip上传参数配置不能为空！");
        Assert.hasText(uploadConfig.getType(), "zip上传参数[type]字段不能为空！");
    }
}
